<?php /* Smarty version 2.6.26, created on 2014-10-23 16:28:21
         compiled from index.html */ ?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<table>
		<tr>
			<td>栏目号(CID)</td>
			<td>栏目名称</td>
			<td>操作</td>
		</tr>
		<?php unset($this->_sections['c']);
$this->_sections['c']['loop'] = is_array($_loop=$this->_tpl_vars['data']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['c']['name'] = 'c';
$this->_sections['c']['show'] = true;
$this->_sections['c']['max'] = $this->_sections['c']['loop'];
$this->_sections['c']['step'] = 1;
$this->_sections['c']['start'] = $this->_sections['c']['step'] > 0 ? 0 : $this->_sections['c']['loop']-1;
if ($this->_sections['c']['show']) {
    $this->_sections['c']['total'] = $this->_sections['c']['loop'];
    if ($this->_sections['c']['total'] == 0)
        $this->_sections['c']['show'] = false;
} else
    $this->_sections['c']['total'] = 0;
if ($this->_sections['c']['show']):

            for ($this->_sections['c']['index'] = $this->_sections['c']['start'], $this->_sections['c']['iteration'] = 1;
                 $this->_sections['c']['iteration'] <= $this->_sections['c']['total'];
                 $this->_sections['c']['index'] += $this->_sections['c']['step'], $this->_sections['c']['iteration']++):
$this->_sections['c']['rownum'] = $this->_sections['c']['iteration'];
$this->_sections['c']['index_prev'] = $this->_sections['c']['index'] - $this->_sections['c']['step'];
$this->_sections['c']['index_next'] = $this->_sections['c']['index'] + $this->_sections['c']['step'];
$this->_sections['c']['first']      = ($this->_sections['c']['iteration'] == 1);
$this->_sections['c']['last']       = ($this->_sections['c']['iteration'] == $this->_sections['c']['total']);
?>
		<tr>
			<td><?php echo $this->_tpl_vars['data'][$this->_sections['c']['index']]['cid']; ?>
</td>
			<td><?php echo $this->_tpl_vars['data'][$this->_sections['c']['index']]['catname']; ?>
</td>
			<td>
				<a href="?m=admin&c=category&a=edit&cid=<?php echo $this->_tpl_vars['data'][$this->_sections['c']['index']]['cid']; ?>
">编辑</a> 
				<a href="?m=Admin&c=category&a=delete&cid=<?php echo $this->_tpl_vars['data'][$this->_sections['c']['index']]['cid']; ?>
" onclick="return confirm('该栏目文章也将被删除')">删除</a>
			</td>
		</tr>
		<?php endfor; endif; ?>
	</table>
	<style>
		table{
			margin: 100px auto;
			width: 800px;
			background:url(<?php echo @__VIEW__; ?>
/global/images/default/headerbg.png);
			color: #fff;
			text-align: center;
			border-radius: 5px;
			box-shadow: 2px 2px 2px #3D4E67;
		}
		a{
			color: #fff;
			text-decoration: none;
			margin-right: 5px;
			display: inline-block;
		}
		a:hover{
			text-decoration: underline;
		}
	</style>
</body>
</html>